package bch.rocketmq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
public class B {
    @Autowired
    private A a;

    @Transactional(rollbackFor = Exception.class, transactionManager = "chainedTransactionManager")
    public void b() {
        System.out.println( "b");
    }
}
